package cn.chaohi.common.domain.cloudstorage.order;

import java.util.List;
import java.util.Map;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import cn.chaohi.utils.Tools;

/**
 * 订单信息返回数据
 * 
 * @author bobo
 *
 */
public class OrderInfo {

	/**
	 * 日志.
	 */
	private Logger logger = Logger.getLogger(OrderInfo.class);
	/**
	 * 订单ID.
	 */
	private String order_id;
	/**
	 * 用户唯一标识.
	 */
	private String union_id;
	/**
	 * 订单号.
	 */
	private String order_no;
	/**
	 * 订单金额.
	 */
	private String order_money;
	/**
	 * 支付金额.
	 */
	private String pay_money;
	/**
	 * erp优惠金额.
	 */
	private String erp_dis_money;
	/**
	 * 系统优惠金额.
	 */
	private String sys_dis_money;
	/**
	 * 支付类型.
	 */
	private String payType;

	/**
	 * 超市ID
	 */
	private String market_id = "";
	/**
	 * 超市logo.
	 */
	private String market_logo = "";
	/**
	 * 超市名称.
	 */
	private String market_name = "";
	/**
	 * 消费时间
	 */
	private String create_time = "";
	/**
	 * 发票状态
	 */
	private Integer invoice_status = -1;
	/**
	 * 账单号,用于公众号展示
	 */
	private String bill_no;
	/**
	 * 订单明细
	 */
	private List<OrderDetail> orderDetails;

	public OrderInfo() {
		super();
	}

	public String getOrder_id() {
		return order_id;
	}

	public void setOrder_id(String order_id) {
		this.order_id = order_id;
	}

	public String getUnion_id() {
		return union_id;
	}

	public void setUnion_id(String union_id) {
		this.union_id = union_id;
	}

	public String getOrder_no() {
		return order_no;
	}

	public void setOrder_no(String order_no) {
		this.order_no = order_no;
	}

	public String getOrder_money() {
		return order_money;
	}

	public void setOrder_money(String order_money) {
		this.order_money = order_money;
	}

	public String getPay_money() {
		return pay_money;
	}

	public void setPay_money(String pay_money) {
		this.pay_money = pay_money;
	}

	public String getErp_dis_money() {
		return erp_dis_money;
	}

	public void setErp_dis_money(String erp_dis_money) {
		this.erp_dis_money = erp_dis_money;
	}

	public String getSys_dis_money() {
		return sys_dis_money;
	}

	public void setSys_dis_money(String sys_dis_money) {
		this.sys_dis_money = sys_dis_money;
	}

	public String getPayType() {
		return payType;
	}

	public void setPayType(String payType) {
		this.payType = payType;
	}

	public String getMarket_logo() {
		return market_logo;
	}

	public void setMarket_logo(String market_logo) {
		this.market_logo = market_logo;
	}

	public String getMarket_name() {
		return market_name;
	}

	public void setMarket_name(String market_name) {
		this.market_name = market_name;
	}

	public List<OrderDetail> getOrderDetails() {
		return orderDetails;
	}

	public void setOrderDetails(List<OrderDetail> orderDetails) {
		this.orderDetails = orderDetails;
	}

	public String getCreate_time() {
		return create_time;
	}

	public void setCreate_time(String create_time) {
		this.create_time = create_time;
	}

	public Integer getInvoice_status() {
		return invoice_status;
	}

	public void setInvoice_status(Integer invoice_status) {
		this.invoice_status = invoice_status;
	}
	public String getBill_no() {
		return bill_no;
	}

	public void setBill_no(String bill_no) {
		this.bill_no = bill_no;
	}

	public String getMarket_id() {
		return market_id;
	}

	public void setMarket_id(String market_id) {
		this.market_id = market_id;
	}

	public Map<String, Object> toMap() {
		Map<String, Object> map = null;
		try {
			if (this != null) {
				map = Tools.objectToMap(this);
			}
		} catch (Exception e) {
			logger.error("返回值转map时发生异常:" + e.getMessage());
		}
		return map;
	}
}
